package cn.microservices.cloud.common.core.entity;


/**
 * @Author hyf
 * @Date 2019/3/1 13:43
 */

public class DateTimeEntity {
    /**
     * 年
     */
    private Integer year;
    /**
     * 月
     */
    private Integer month;
    /**
     * 日
     */
    private Integer dayOfMonth;
    /**
     * 时
     */
    private Integer hour;
    /**
     * 分
     */
    private Integer minute;
    /**
     * 秒
     */
    private Integer second;

    public Integer getYear() {
        return year==null?0:year;
    }

    public Integer getMonth() {
        return month==null?0:month;
    }

    public Integer getDayOfMonth() {
        return dayOfMonth==null?0:dayOfMonth;
    }

    public Integer getHour() {
        return hour==null?0:hour;
    }

    public Integer getMinute() {
        return minute==null?0:minute;
    }

    public Integer getSecond() {
        return second==null?0:second;
    }


    public void setYear(Integer year) {
        this.year = year;
    }

    public void setMonth(Integer month) {
        this.month = month;
    }

    public void setDayOfMonth(Integer dayOfMonth) {
        this.dayOfMonth = dayOfMonth;
    }

    public void setHour(Integer hour) {
        this.hour = hour;
    }

    public void setMinute(Integer minute) {
        this.minute = minute;
    }

    public void setSecond(Integer second) {
        this.second = second;
    }

    public static void main(String[] args) {
        System.out.println(new DateTimeEntity());
    }
}
